package com.bean;

import java.util.Date;

/**
 * @ClassName History
 * @Desc 借阅记录
 * @Author xiaoding
 * @Date 2021/1/10 16:03
 * @Version 1.0
 */

public class History {
    //功能属性
    private int hId;
    private int uId;
    private String uName;
    private int bId;
    private String bName;
    private String flag;
    private Date borrowDate;
    private Date dateOfReturn;

    //构造方法
    public History() {}
    public History(int hId, int uId, String uName, int bId, String bName, String flag, Date borrowDate, Date dateOfReturn) {
        this.hId = hId;
        this.uId = uId;
        this.uName = uName;
        this.bId = bId;
        this.bName = bName;
        this.flag = flag;
        this.borrowDate = borrowDate;
        this.dateOfReturn = dateOfReturn;
    }
    public History(int uId, String uName, int bId, String bName, String flag, Date borrowDate, Date dateOfReturn) {
        this.uId = uId;
        this.uName = uName;
        this.bId = bId;
        this.bName = bName;
        this.flag = flag;
        this.borrowDate = borrowDate;
        this.dateOfReturn = dateOfReturn;
    }

    //get、set方法
    public void sethId(int hId) {
        this.hId = hId;
    }

    public void setuId(int uId) {
        this.uId = uId;
    }

    public void setuName(String uName) {
        this.uName = uName;
    }

    public void setbId(int bId) {
        this.bId = bId;
    }

    public void setbName(String bName) {
        this.bName = bName;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public void setBorrowDate(Date borrowDate) {
        this.borrowDate = borrowDate;
    }

    public void setDateOfReturn(Date dateOfReturn) {
        this.dateOfReturn = dateOfReturn;
    }

    public int gethId() {
        return hId;
    }

    public int getuId() {
        return uId;
    }

    public String getuName() {
        return uName;
    }

    public int getbId() {
        return bId;
    }

    public String getbName() {
        return bName;
    }

    public String getFlag() {
        return flag;
    }

    public Date getBorrowDate() {
        return borrowDate;
    }

    public Date getDateOfReturn() {
        return dateOfReturn;
    }

    @Override
    public String toString() {
        return "History{" +
                "hId=" + hId +
                ", uId=" + uId +
                ", uName='" + uName + '\'' +
                ", bId=" + bId +
                ", bName='" + bName + '\'' +
                ", flag='" + flag + '\'' +
                ", borrowDate=" + borrowDate +
                ", dateOfReturn=" + dateOfReturn +
                '}';
    }
}
